<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ShowDisaster</title>
    <link rel="stylesheet" href="/Trees/LayUiBac/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-container">
    <div class="layui-row">
        <h1>查看事件信息</h1>
        <form class="layui-form" action="">

            <div class="layui-form-item">
                <label class="layui-form-label">事件名称</label>
                <div class="layui-input-block">
                    <input type="text" name="thingName" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">发生时间</label>
                <div class="layui-input-block">
                    <input type="text" name="time" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">灾情阶段</label>
                <div class="layui-input-block">
                    <input type="text" name="state" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">灾情描述</label>
                <div class="layui-input-block">
                    <input type="text" name="describe" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">灾害类型</label>
                <div class="layui-input-block">
                    <input type="text" name="type" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">初步损失</label>
                <div class="layui-input-block">
                    <input type="text" name="lose" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">目前方案</label>
                <div class="layui-input-block">
                    <input type="text" name="method" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">专家建议</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input type="text" name="expertMethod" required lay-verify="required"-->
<!--                           autocomplete="off" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->

            <div class="layui-form-item">
                <label class="layui-form-label">发现途径</label>
                <div class="layui-input-block">
                    <input type="text" name="found" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">发生位置</label>
                <div class="layui-input-block">
                    <input type="text" name="area" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">灾害类型</label>
                <div class="layui-input-block">
                    <input type="text" name="type" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">影响面积</label>
                <div class="layui-input-block">
                    <input type="text" name="size" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">所在小班</label>
                <div class="layui-input-block">
                    <input type="text" name="className" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

        </form>
    </div>
</div>


<script src="/Trees/LayUiBac/layui/layui.js"></script>
<script>
    //Demo
    layui.use('form', function () {
        let form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>